cmake_minimum_required(VERSION 2.8)

if (NOT CMAKE_THIRDPARTY)
    set(CMAKE_THIRDPARTY ${CMAKE_CURRENT_LIST_DIR}/../thirdpartylib)
endif()


project(gui C CXX)

if (NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Debug)
  #set(CMAKE_BUILD_TYPE Release)
  #set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif ()

set(PROCJECT_INCLUDE 
    utils/
    gui/
    ../system
    ./
    )

file(GLOB PROCJECT_FILES
    utils/*.c
    ../system/task*.c
    gui/*.c
)

add_executable(gui_app test/gui_test.c ${PROCJECT_FILES})
target_include_directories(gui_app PUBLIC ${PROCJECT_INCLUDE})
target_link_libraries(gui_app ${PROCJECT_LIBRARIES} -lpthread)






